
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;
using HousingInfo.DataLinQ;
namespace HousingInfo.Library
{ 
	public partial class SMSDataBO : Csla.BusinessBase<SMSDataBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in SMSDataBO
			//AuthorizationRules.AllowRead(SmsidProperty, "SMSDataBOReadGroup");
			//AuthorizationRules.AllowRead(NewsHouseIDProperty, "SMSDataBOReadGroup");
			//AuthorizationRules.AllowRead(PriceProperty, "SMSDataBOReadGroup");
			//AuthorizationRules.AllowRead(RegisterDateProperty, "SMSDataBOReadGroup");

			//AuthorizationRules.AllowWrite(NewsHouseIDProperty, "SMSDataBOWriteGroup");
			//AuthorizationRules.AllowWrite(PriceProperty, "SMSDataBOWriteGroup");
			//AuthorizationRules.AllowWrite(RegisterDateProperty, "SMSDataBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of SMSDataBO
			//AuthorizationRules.AllowCreate(typeof(SMSDataBO), "SMSDataBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(SMSDataBO), "SMSDataBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(SMSDataBO), "SMSDataBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.SMSData data)
		{
			//CHANGE_ME! //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
